﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
    [Table("mas_nationalities"), DataContract]
    public class MasNationality
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [DataMember, Display(Name = "NatId", ResourceType = typeof(Resources.MasNationalityResource))]
        [Column("nat_seq")]
        public int NatId { get; set; }

        [DataMember, Display(Name = "NatName", ResourceType = typeof(Resources.MasNationalityResource))]
        [Column("nat_name")]
        public int NatName { get; set; }

        [DataMember, Display(Name = "NatNameEng", ResourceType = typeof(Resources.MasNationalityResource))]
        [Column("nat_name_eng")]
        public int NatNameEng { get; set; }

        [EnumDataType(typeof(SYS.RecordStatus.EnumRecordStatus))]
        [DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.MasGenderResource))]
        [Column("record_status")]
        public string RecordStatus { get; set; }

        [Column("created_by")]
        public int? CreatedBy { get; set; }
        [Column("created_when")]
        public DateTime? CreatedWhen { get; set; }
        [Column("updated_by")]
        public int? UpdatedBy { get; set; }
        [Column("updated_when")]
        public DateTime? UpdatedWhen { get; set; }
    }
}
